package com.qingke.besuper.command.impl;

import java.util.List;

import com.qingke.besuper.command.UserCommand;
import com.qingke.besuper.pojo.User;
import com.qingke.besuper.util.BeSuperConsole;

public class ListPCommand extends UserCommand{

	public ListPCommand(User user) {
		super(user);
	}

	@Override
	public void execute() {
		List<User> arrU = dao.getAllUsers();
		BeSuperConsole.println("------player list------");
		for(User u:arrU){
			BeSuperConsole.println("id:["+u.getId()+"],name:["+u.getName()+"],score:["+u.getScore()+"]");
		}
		BeSuperConsole.println();
	}

}
